package com.kindel.mapper.book;

import com.kindel.model.book.BookModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by winte on 2017/8/24.
 */
@Mapper
public interface BookMapper {
    List<BookModel> loadBook(@Param("name") String name,@Param("author") String author,@Param("typeName") String typeName);

    List<BookModel> loadBookAll();

    List<BookModel> loadBookRandom(@Param("count") int count);

    List<BookModel> loadBookWeek(@Param("count") int count);
}
